package NineList;

import java.util.HashSet;
import java.util.Iterator;

public class Hash {

	public static void main(String[] args) {
		HashSet ha = new HashSet();
		System.out.println(ha.add(5));
		System.out.println(ha.add(4));
		System.out.println(ha.add(5));
		ha.add(3);
		ha.add(1);
		Iterator it = ha.iterator();
		while(it.hasNext()){
			System.out.println(it.next());
		}
	}

}
